package common

import (
	"gomicrodemo/proto/goods"
)

func SetCommonRsp(err error) (*goods.BaseRsp, error) {
	var baseRsp goods.BaseRsp
	if err != nil {
		baseRsp.Code = -1
		baseRsp.Msg = err.Error()
	}
	baseRsp.Code = -1
	baseRsp.Msg = err.Error()
	return &baseRsp, nil
}
